<%--
  Created by IntelliJ IDEA.
  User: student
  Date: 2019/9/11
  Time: 16:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basepath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <title>Title</title>
    <base href="<%=basepath %>"/>
</head>
<body>
    <h1>hello jsp!!!!</h1>
    <br>
    <c:if test="${not empty users }">
        <c:forEach items="${users}" varStatus="index" var="item">
            ${index.count} ---------------  ${item} <br/>
        </c:forEach>
    </c:if>
</body>
</html>
